package cn.xd.base.persistence.mps.impl;

import cn.xd.base.persistence.dos.AdminUserOrgRoleDO;
import cn.xd.base.persistence.mapper.AdminUserOrgRoleMapper;
import cn.xd.base.persistence.mps.AdminUserOrgRoleMpService;
import cn.xd.core.response.CollectResult;
import cn.xd.core.service.impl.BasicMpServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class AdminUserOrgRoleMpServiceImpl extends BasicMpServiceImpl<AdminUserOrgRoleMapper, AdminUserOrgRoleDO> implements AdminUserOrgRoleMpService {
    @Override
    public CollectResult<AdminUserOrgRoleDO> getAdminUserOrgRoles(Long userId) {
        return CollectResult.of(lambdaQuery().eq(AdminUserOrgRoleDO::getUserId, userId).list());
    }


}
